const baseUrl ="http://192.168.3.8:3000"
function http({
    url,
    callback
}){
    wx.request({
        url: baseUrl+url,
        header: {'content-type':'application/json'},
        method: 'GET',
        dataType: 'json',
        responseType: 'text',
        success: (result)=>{
            callback(result)
        }
    }); 
}
module.exports = http;